log using "$Rep_smokelabor/2_analysis/output_logs/figure4.log", replace 

	use "$Rep_smokelabor/1_build/regdata/county_quarter.dta", clear 
		
	binscatter pm25  hms_deep [aw=seer_pop], controls(i.fe_styr) absorb(fe_countyqtroy) n(10) noaddmean ///
		xtitle("Smoke",size(huge)) ytitle("PM2.5",size(huge)) ///
		xline(0,lp(dot) lcol(black)) yline(0,lp(dot) lcol(black)) ///
		ylab(-0.6(0.3)0.6,labsize(vlarge) nogrid) ///
		xlab(,labsize(vlarge)) ///
		mcol(blue) lcol(teal) ///
		graphregion(col(white)) ///
		xsize(4.5)
	gr export "$Rep_smokelabor/2_analysis/output_figures/figure4_a.pdf", replace 					
	
	binscatter d_pc_qwi_payroll hms_deep [aw=seer_pop], controls(i.fe_styr) absorb(fe_countyqtroy) n(10) noaddmean ///
		xtitle("Smoke",size(huge)) ytitle("Earnings",size(huge)) ///
		xline(0,lp(dot) lcol(black)) yline(0,lp(dot) lcol(black)) ///
		ylab(-60(30)60,labsize(vlarge) nogrid) ///
		xlab(,labsize(vlarge)) ///
		mcol(blue) lcol(teal) ///
		graphregion(col(white)) ///
		xsize(4.5)
	gr export "$Rep_smokelabor/2_analysis/output_figures/figure4_b.pdf", replace 					
	
	binscatter d_pmil_qwi_emptotal hms_deep [aw=seer_pop16plus], controls(i.fe_styr) absorb(fe_countyqtroy) n(10) noaddmean ///
		xtitle("Smoke",size(huge)) ytitle("Employment",size(huge)) ///
		xline(0,lp(dot) lcol(black)) yline(0,lp(dot) lcol(black)) ///
		ylab(-1500(750)1500,labsize(vlarge) nogrid) ///
		xlab(,labsize(vlarge)) ///
		mcol(blue) lcol(teal) ///
		graphregion(col(white)) ///
		xsize(4.5)
	gr export "$Rep_smokelabor/2_analysis/output_figures/figure4_c.pdf", replace 					
	
	binscatter d_pmil_lau_lfp hms_deep [aw=seer_pop], controls(i.fe_styr) absorb(fe_countyqtroy) n(10) noaddmean ///
		xtitle("Smoke",size(huge)) ytitle("LFP",size(huge)) ///
		xline(0,lp(dot) lcol(black)) yline(0,lp(dot) lcol(black)) ///
		ylab(-500(250)500,labsize(vlarge) nogrid) ///
		xlab(,labsize(vlarge)) ///
		mcol(blue) lcol(teal) ///
		graphregion(col(white)) ///
		xsize(4.5)
	gr export "$Rep_smokelabor/2_analysis/output_figures/figure4_d.pdf", replace 					

log close

